/**
 * @Author 韦建韩
 * @Date 2022/4/19
 */
package com.example.devops.entity.common;

import com.example.devops.constant.HttpCodeConstant;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class Result {
    private Integer code;
    private Object data;
    private List<Object> dataList;
    private Map<Object,Object> dataMap;
    public Result(){
        this.code = HttpCodeConstant.Field.Success.code;
    }
    public Result(Object data){
        this.code = HttpCodeConstant.Field.Success.code;
        this.data = data;
    }
    public static Result doCreate(){
        return new Result();
    }
    public static Result doCreate(Object o){
        return new Result(o);
    }
}
